### -*- coding: utf-8 -*- #############################################
# Разработано Паэглит Арвидом (http://arvid.dp.ua/)
# Все права защищены, 2007
#
# Developed by Paeglit Arvid (http://arvid.dp.ua/)
# All right reserved, 2007
#######################################################################
"""User class for the Zope 3 based user package

$Id: user.py 33 2007-12-11 00:14:24Z Arvi3D $
"""
__author__  = "Arvid"
__license__ = "GPL"
__version__ = "$Revision: 33 $"
__date__ = "$Date: 2007-12-11 00:14:24 +0000 (Tue, 11 Dec 2007) $"

from zope.schema.fieldproperty import FieldProperty
from zope.interface import implements,implementedBy
from ks.sqltools.simplesqlui.record.record import RecordBase,sqlattribute
from ks.sqltools.simplesqlui.sqlcontainer.sqlcontainer import SqlContainerBase,sqljoin

from interfaces import IUser, IUserContained

class User(RecordBase) :
    implements(IUser, IUserContained)

    sqlattribute("auth_id")
    sqlattribute("auth_email")
    sqlattribute("auth_name")
    sqlattribute("auth_password")

    passConfirm = FieldProperty(IUser['passConfirm'])

    sqlattribute("auth_cdate")
    sqlattribute("auth_lastlogin")
    sqlattribute("auth_istemp")
